import $http from '../request';

const URL_PREFIX = "/feature"

export const $FeatureApi = {

	/**
	 * 创建特征分类
	 * @param param
	 * @returns {Promise<*>}
	 */
	createCategory: (param) => {
		return $http.$post(URL_PREFIX + "/category/create", param, {});
	},

	/**
	 * 获取特征分类树数据
	 * @returns {Promise<*>}
	 */
	getCategoryTreeData: (params) => {
		return $http.$get(URL_PREFIX + "/category/getTreeData", params, {})
	},



}